libdir = $(plugindir)
EXTRA_DIST = AnymaDevice.h AnymaOutputPort.h FirmwareLoader.h SunliteDevice.h \
             SunliteFirmware.h SunliteFirmwareLoader.h SunliteOutputPort.h \
             UsbDmxPlugin.h UsbDevice.h VellemanDevice.h VellemanOutputPort.h

INCLUDES = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include
AM_CXXFLAGS = -Wall -Wformat -W

if HAVE_LIBUSB
  lib_LTLIBRARIES = libolausbdmx.la
  libolausbdmx_la_SOURCES = AnymaDevice.cpp AnymaOutputPort.cpp \
                            SunliteDevice.cpp SunliteFirmwareLoader.cpp \
                            SunliteOutputPort.cpp \
                            UsbDmxPlugin.cpp VellemanDevice.cpp \
                            VellemanOutputPort.cpp
  libolausbdmx_la_CXXFLAGS = $(libusb_CFLAGS)
  libolausbdmx_la_LIBADD = $(libusb_LIBS)
endif
